package top.hekun.study.core.model;

/**
 * 〈复杂变换的helloword基础〉
 *
 * @author: Sakura
 * @date: 2023/5/12
 */
public class HelloWordComplex {
    private int var ;
    public int add1(int a, int b) {
        int c = a + b;
        int d = c + 0;
        return d;
    }

    public int add2(int a, int b) {
        int c = a + b;
       this.var=this.var;
        return c;
    }

    public int add3(int a, int b) {
        System.out.println("执行 HelloWordComplex#add3 方法");
        int c = a + b;
        System.out.println(a + "+" + b + "=" + c);
        return c;
    }
}
